<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: lib/timer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">timer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="timer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef __TIMER_H__</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define __TIMER_H__</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="timer_8h.html#a492a379b00d0ec04be9cd0994e0b42ae">   29</a></span>&#160;<span class="preprocessor">#define MAX_TIMER_CNT 8</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="timer_8h.html#afeece078c6706f33383bf11bbf584518">   32</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> <a class="code" href="timer_8h.html#afeece078c6706f33383bf11bbf584518">clockid_t</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structTIMERS.html">   35</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;{</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structTIMERS.html#a4326e05ca52d80147efafd0d246ecb41">   37</a></span>&#160;    void (*user_timer_handler)(void);             <span class="comment">// user task</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structTIMERS.html#a0b10fdb7b0e6b1d3ca49718f47c4514d">   38</a></span>&#160;    <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structTIMERS.html#a0b10fdb7b0e6b1d3ca49718f47c4514d">timer</a>;                                <span class="comment">// user task enabled ?</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;} <a class="code" href="structTIMERS.html">TIMERS</a>;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#ifndef SYSTEM_TASK_HZ</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#error #define SYSTEM_TASK_HZ 1000L</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="timer_8h.html#ac0ca52f7bb0e2b7993bbcb75495d7904">   47</a></span>&#160;<span class="preprocessor">#define SYSTEM_TASK_TIC_NS ( 1000000000L / SYSTEM_TASK_HZ )</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#define SYSTEM_TASK_TIC_US ( 1000000L / SYSTEM_TASK_HZ )</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="timer_8h.html#a4068229bfd30e574c7a9f1a8c6687582">   52</a></span>&#160;<span class="preprocessor">#define CLOCK_HZ SYSTEM_TASK_HZ</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#define CLOCK_TIC_NS SYSTEM_TASK_TIC_NS</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#define CLOCK_TIC_US SYSTEM_TASK_TIC_US</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">/* timer.c */</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="timer_8h.html#a35f94fb84f1b626d8d1ace062b26c932">set_timers</a> ( <span class="keywordtype">void</span> (*handler )(<span class="keywordtype">void</span> ), <span class="keywordtype">int</span> timer );</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="timer_8h.html#a71c3fe0e245c7b08e03a2fe0fbd88844">kill_timer</a> ( <span class="keywordtype">int</span> timer );</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a4b27b84577f0a45741aa4b1de370df66">delete_all_timers</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#ab92d687bae984bd62c3d741f2ba614ed">subtract_timespec</a> ( <a class="code" href="structtimespec.html">ts_t</a> *a , <a class="code" href="structtimespec.html">ts_t</a> *b );</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">char</span> *<a class="code" href="timer_8h.html#a41fb2edea84c2f17c7c6ad6ff87baeff">ts_to_str</a> ( <a class="code" href="structtimespec.html">ts_t</a> *val );</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a6802af23bc1fe764b975683a0b37fc91">display_ts</a> ( <a class="code" href="structtimespec.html">ts_t</a> *val );</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a6beae313733d5f16cb62417d41eaca95">clock_elapsed_begin</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a9f3dff4c1cc1701dc99d7e1d30ffcc06">clock_elapsed_end</a> ( <span class="keywordtype">char</span> *msg );</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a23ba64ca0da1fe41d4c870ada3e8a04e">clock_clear</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#abe2823a39b30ff55fe9326f2b5f0741e">disable_timers</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a0e736ce66a2bc05cc14b7a282fa52b73">enable_timers</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a7de37276c1b697f865594c7e5f28e961">execute_timers</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#aa97274e3b8fdcd900c265d3808d5313c">clock_init</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a182d70e09e9436c9c8a2e81b7597f206">clock_task</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a4a06b0b10204f441d18c79601b4ee13f">init_timers</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="timer_8h.html#ab507661341c93c415b27ed9d40839539">clock_getres</a> ( <a class="code" href="time_8h.html#afeece078c6706f33383bf11bbf584518">clockid_t</a> clk_id , <span class="keyword">struct</span> <a class="code" href="structtimespec.html">timespec</a> *res );</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="timer_8h.html#a4ebca9883466f2cc6fea0547e0e64e79">clock_settime</a> ( <a class="code" href="time_8h.html#afeece078c6706f33383bf11bbf584518">clockid_t</a> clk_id , <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structtimespec.html">timespec</a> *ts );</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">extern</span> <a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="timer_8h.html#aa6e5b6a9c1fb8bc6e2093fca40600bf5">clock_gettime</a> ( <a class="code" href="time_8h.html#afeece078c6706f33383bf11bbf584518">clockid_t</a> clk_id , <span class="keyword">struct</span> <a class="code" href="structtimespec.html">timespec</a> *ts );</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">/* timer_hal.c */</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a45ccd72c3ad32c4f7a5a8ef74d2653b3">disable_system_task</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a9827e02881cff25ff30c35c7d8ed3ac4">enable_system_task</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="timer_8h.html#a49353e09a3623d95083574b87e9aadc5">install_timers_isr</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#endif   // _TIMER_H_</span></div><div class="ttc" id="structTIMERS_html_a0b10fdb7b0e6b1d3ca49718f47c4514d"><div class="ttname"><a href="structTIMERS.html#a0b10fdb7b0e6b1d3ca49718f47c4514d">TIMERS::timer</a></div><div class="ttdeci">uint8_t timer</div><div class="ttdef"><b>Definition:</b> <a href="timer_8h_source.html#l00038">timer.h:38</a></div></div>
<div class="ttc" id="timer_8h_html_a71c3fe0e245c7b08e03a2fe0fbd88844"><div class="ttname"><a href="timer_8h.html#a71c3fe0e245c7b08e03a2fe0fbd88844">kill_timer</a></div><div class="ttdeci">MEMSPACE int kill_timer(int timer)</div><div class="ttdoc">Delete &quot;Kill&quot; one user timer task. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00100">timer.c:100</a></div></div>
<div class="ttc" id="timer_8h_html_a41fb2edea84c2f17c7c6ad6ff87baeff"><div class="ttname"><a href="timer_8h.html#a41fb2edea84c2f17c7c6ad6ff87baeff">ts_to_str</a></div><div class="ttdeci">MEMSPACE char * ts_to_str(ts_t *val)</div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00155">timer.c:155</a></div></div>
<div class="ttc" id="timer_8h_html_a7de37276c1b697f865594c7e5f28e961"><div class="ttname"><a href="timer_8h.html#a7de37276c1b697f865594c7e5f28e961">execute_timers</a></div><div class="ttdeci">void execute_timers(void)</div><div class="ttdoc">Execute all user timers at SYSTEM_HZ rate. Called by system task. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00261">timer.c:261</a></div></div>
<div class="ttc" id="send_8c_html_a273cf69d639a59973b6019625df33e30"><div class="ttname"><a href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a></div><div class="ttdeci">unsigned short uint16_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00018">send.c:18</a></div></div>
<div class="ttc" id="timer_8h_html_ab92d687bae984bd62c3d741f2ba614ed"><div class="ttname"><a href="timer_8h.html#ab92d687bae984bd62c3d741f2ba614ed">subtract_timespec</a></div><div class="ttdeci">MEMSPACE void subtract_timespec(ts_t *a, ts_t *b)</div><div class="ttdoc">subtract a-= b timespec * structures. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00135">timer.c:135</a></div></div>
<div class="ttc" id="timer_8h_html_a49353e09a3623d95083574b87e9aadc5"><div class="ttname"><a href="timer_8h.html#a49353e09a3623d95083574b87e9aadc5">install_timers_isr</a></div><div class="ttdeci">MEMSPACE void install_timers_isr(void)</div></div>
<div class="ttc" id="timer_8h_html_aa6e5b6a9c1fb8bc6e2093fca40600bf5"><div class="ttname"><a href="timer_8h.html#aa6e5b6a9c1fb8bc6e2093fca40600bf5">clock_gettime</a></div><div class="ttdeci">MEMSPACE int clock_gettime(clockid_t clk_id, struct timespec *ts)</div><div class="ttdoc">Generic clock_gettime() function WITHOUT high resolution. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00377">timer.c:377</a></div></div>
<div class="ttc" id="time_8h_html_afeece078c6706f33383bf11bbf584518"><div class="ttname"><a href="time_8h.html#afeece078c6706f33383bf11bbf584518">clockid_t</a></div><div class="ttdeci">uint16_t clockid_t</div><div class="ttdoc">type of clockid_t. </div><div class="ttdef"><b>Definition:</b> <a href="time_8h_source.html#l00038">time.h:38</a></div></div>
<div class="ttc" id="timer_8h_html_a4b27b84577f0a45741aa4b1de370df66"><div class="ttname"><a href="timer_8h.html#a4b27b84577f0a45741aa4b1de370df66">delete_all_timers</a></div><div class="ttdeci">MEMSPACE void delete_all_timers(void)</div><div class="ttdoc">Clear ALL user timer tasks. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00117">timer.c:117</a></div></div>
<div class="ttc" id="timer_8h_html_a4a06b0b10204f441d18c79601b4ee13f"><div class="ttname"><a href="timer_8h.html#a4a06b0b10204f441d18c79601b4ee13f">init_timers</a></div><div class="ttdeci">MEMSPACE void init_timers(void)</div><div class="ttdoc">Setup all timers tasksi and enable interrupts. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00293">timer.c:293</a></div></div>
<div class="ttc" id="timer_8h_html_a4ebca9883466f2cc6fea0547e0e64e79"><div class="ttname"><a href="timer_8h.html#a4ebca9883466f2cc6fea0547e0e64e79">clock_settime</a></div><div class="ttdeci">MEMSPACE int clock_settime(clockid_t clk_id, const struct timespec *ts)</div><div class="ttdoc">Set system clock using seconds and nonoseconds - POSIX function. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00345">timer.c:345</a></div></div>
<div class="ttc" id="timer_8h_html_a6beae313733d5f16cb62417d41eaca95"><div class="ttname"><a href="timer_8h.html#a6beae313733d5f16cb62417d41eaca95">clock_elapsed_begin</a></div><div class="ttdeci">MEMSPACE void clock_elapsed_begin(void)</div><div class="ttdoc">Store current struct timespec in __clock_elapsed. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00184">timer.c:184</a></div></div>
<div class="ttc" id="timer_8h_html_ab507661341c93c415b27ed9d40839539"><div class="ttname"><a href="timer_8h.html#ab507661341c93c415b27ed9d40839539">clock_getres</a></div><div class="ttdeci">MEMSPACE int clock_getres(clockid_t clk_id, struct timespec *res)</div><div class="ttdoc">Read clock time resolution into struct timepec *ts - POSIX function. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00329">timer.c:329</a></div></div>
<div class="ttc" id="timer_8h_html_abe2823a39b30ff55fe9326f2b5f0741e"><div class="ttname"><a href="timer_8h.html#abe2823a39b30ff55fe9326f2b5f0741e">disable_timers</a></div><div class="ttdeci">MEMSPACE void disable_timers(void)</div><div class="ttdoc">Disable all timer tasks. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00235">timer.c:235</a></div></div>
<div class="ttc" id="timer_8h_html_aa97274e3b8fdcd900c265d3808d5313c"><div class="ttname"><a href="timer_8h.html#aa97274e3b8fdcd900c265d3808d5313c">clock_init</a></div><div class="ttdeci">MEMSPACE void clock_init(void)</div></div>
<div class="ttc" id="timer_8h_html_a182d70e09e9436c9c8a2e81b7597f206"><div class="ttname"><a href="timer_8h.html#a182d70e09e9436c9c8a2e81b7597f206">clock_task</a></div><div class="ttdeci">void clock_task(void)</div><div class="ttdoc">1000HZ timer task </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00276">timer.c:276</a></div></div>
<div class="ttc" id="timer_8h_html_a35f94fb84f1b626d8d1ace062b26c932"><div class="ttname"><a href="timer_8h.html#a35f94fb84f1b626d8d1ace062b26c932">set_timers</a></div><div class="ttdeci">MEMSPACE int set_timers(void(*handler)(void), int timer)</div><div class="ttdoc">Install a user timer task. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00060">timer.c:60</a></div></div>
<div class="ttc" id="timer_8h_html_a9f3dff4c1cc1701dc99d7e1d30ffcc06"><div class="ttname"><a href="timer_8h.html#a9f3dff4c1cc1701dc99d7e1d30ffcc06">clock_elapsed_end</a></div><div class="ttdeci">MEMSPACE void clock_elapsed_end(char *msg)</div><div class="ttdoc">Subtract and display time difference from clock_elapesed_begin(). </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00200">timer.c:200</a></div></div>
<div class="ttc" id="timer_8h_html_a9827e02881cff25ff30c35c7d8ed3ac4"><div class="ttname"><a href="timer_8h.html#a9827e02881cff25ff30c35c7d8ed3ac4">enable_system_task</a></div><div class="ttdeci">MEMSPACE void enable_system_task(void)</div></div>
<div class="ttc" id="cpu_8h_html_ad0fe97585b8891f5e4f2b9a6426330a4"><div class="ttname"><a href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="ttdeci">#define MEMSPACE</div><div class="ttdef"><b>Definition:</b> <a href="cpu_8h_source.html#l00025">cpu.h:25</a></div></div>
<div class="ttc" id="timer_8h_html_a0e736ce66a2bc05cc14b7a282fa52b73"><div class="ttname"><a href="timer_8h.html#a0e736ce66a2bc05cc14b7a282fa52b73">enable_timers</a></div><div class="ttdeci">MEMSPACE void enable_timers(void)</div><div class="ttdoc">Enable timer tasks. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00248">timer.c:248</a></div></div>
<div class="ttc" id="timer_8h_html_a6802af23bc1fe764b975683a0b37fc91"><div class="ttname"><a href="timer_8h.html#a6802af23bc1fe764b975683a0b37fc91">display_ts</a></div><div class="ttdeci">MEMSPACE void display_ts(ts_t *val)</div><div class="ttdoc">timespec structure in seconds.nanoseconds. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00167">timer.c:167</a></div></div>
<div class="ttc" id="structTIMERS_html"><div class="ttname"><a href="structTIMERS.html">TIMERS</a></div><div class="ttdoc">user timer struct </div><div class="ttdef"><b>Definition:</b> <a href="timer_8h_source.html#l00035">timer.h:35</a></div></div>
<div class="ttc" id="structtimespec_html"><div class="ttname"><a href="structtimespec.html">timespec</a></div><div class="ttdoc">POSIX timespec. </div><div class="ttdef"><b>Definition:</b> <a href="time_8h_source.html#l00088">time.h:88</a></div></div>
<div class="ttc" id="timer_8h_html_a45ccd72c3ad32c4f7a5a8ef74d2653b3"><div class="ttname"><a href="timer_8h.html#a45ccd72c3ad32c4f7a5a8ef74d2653b3">disable_system_task</a></div><div class="ttdeci">MEMSPACE void disable_system_task(void)</div></div>
<div class="ttc" id="timer_8h_html_afeece078c6706f33383bf11bbf584518"><div class="ttname"><a href="timer_8h.html#afeece078c6706f33383bf11bbf584518">clockid_t</a></div><div class="ttdeci">uint16_t clockid_t</div><div class="ttdoc">type of clockid_t. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8h_source.html#l00032">timer.h:32</a></div></div>
<div class="ttc" id="send_8c_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00017">send.c:17</a></div></div>
<div class="ttc" id="timer_8h_html_a23ba64ca0da1fe41d4c870ada3e8a04e"><div class="ttname"><a href="timer_8h.html#a23ba64ca0da1fe41d4c870ada3e8a04e">clock_clear</a></div><div class="ttdeci">MEMSPACE void clock_clear(void)</div><div class="ttdoc">clear time and timezone to 0. </div><div class="ttdef"><b>Definition:</b> <a href="timer_8c_source.html#l00221">timer.c:221</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
